﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ERP.WH.Models.Entity;

[Table("wh_stock_out")]
public partial class WhStockOut
{
    [Key]
    public long StockOutId { get; set; }

    public string StockOutNo { get; set; } = null!;

    /// <summary>
    /// 1-销售出库, 2-生产领料, 3-退货出库, 4-调拨出库
    /// </summary>
    public sbyte? OrderType { get; set; }

    /// <summary>
    /// 关联单号
    /// </summary>
    public string? RelatedOrder { get; set; }

    public int WarehouseId { get; set; }

    /// <summary>
    /// 客户ID
    /// </summary>
    public int? CustomerId { get; set; }

    public DateOnly? ExpectedShipDate { get; set; }

    public DateTime? ActualShipDate { get; set; }

    public decimal? TotalAmount { get; set; }

    public decimal? TotalQuantity { get; set; }

    /// <summary>
    /// 0-草稿, 1-待审核, 2-已审核, 3-部分出库, 4-已完成, 5-已取消
    /// </summary>
    public sbyte? Status { get; set; }

    public string? Remark { get; set; }

    public long CreatedBy { get; set; }

    public DateTime? CreatedAt { get; set; }

    public long? UpdatedBy { get; set; }

    public DateTime? UpdatedAt { get; set; }

    public sbyte? IsDelete { get; set; }
}
